<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>作物添加页面</title>
  <link rel="stylesheet" href="../../../yl/index.css" />
  <!-- 布局样式 -->
  <link rel="stylesheet" href="../../../yl/style.css" />
  <link rel="stylesheet" href="../../../yl/mobile.css" />
  <link rel="stylesheet" href="../../../yl/easyui.css" />
  <link rel="stylesheet" href="../../../yl/icon.css" />
  <!-- <style>
    [v-cloak] {
      display: none;
    }

    html,
    body {
      height: 100%;
      margin: 0;
      padding: 0;
    }

    .borderless-input .el-input__wrapper {
      border: none !important;
      box-shadow: none !important;
      background: transparent !important;
    }

    /* 移除聚焦状态样式 */
    .borderless-input .el-input__wrapper.is-focus {
      box-shadow: none !important;
    }

    .el-select__wrapper {
      border: none !important;
      box-shadow: none !important;
      background: transparent !important;
    }

    /* 控制 el-descriptions-item 中 label 的宽度 */
    .el-descriptions-item__label {
      width: 50px !important;
      /* 你可以根据需要调整这个宽度值 */
      display: inline-block !important;
    }

    .botton-ann {
      background-color: #eff5ff 0, #e0ecff 100%;
      padding: 8px;
      gap: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .upload_file.none .el-upload {
      display: none;
    }
  </style> -->
</head>

<body>
  <!-- <div id="app"> -->
  <div class="easyui-navpanel" id="app" v-cloak>
    <header>
      <div class="m-toolbar">
        <div class="m-title">{{action=='Add'?'添加信息':action=='Modify'?'修改信息':''}}</div>
      </div>
    </header>
    <div class="easyui-navpanel panel-body panel-body-nobottom panel-body-noborder" style="height: 3000px"
      id="MainTable" ref="MainTable"
      :data-options="JSON.stringify({ 'TableName': 'agricultural_machinery', 'form': 'dataForm' })">
      <div class="yl-main">
        <div class="table_titel">
          <div class="titel">基本信息</div>
        </div>
        <el-descriptions :column="2" size="large" border>
          <el-descriptions-item>
            <template #label>
              <div class="cell-item">名称</div>
            </template>
            <el-input disabled ref="personal_information" v-model="dataForm.Agricultural_Machinery_Name" class="borderless-input"
              placeholder="请输入名称" />
          </el-descriptions-item>
          <el-descriptions-item>
            <template #label>
              <div class="cell-item">类别</div>
            </template>
            <el-input disabled ref="personal_information" v-model="dataForm.Category_Name" class="borderless-input"
              placeholder="请输入类别" />
          </el-descriptions-item>
          <el-descriptions-item>
            <template #label>
              <div class="cell-item">类型</div>
            </template>
            <el-input disabled ref="personal_information" :value="dataForm.type=='0'?'需求':'供给'" class="borderless-input"
              placeholder="请输入类型" />
          </el-descriptions-item>
          <el-descriptions-item>
            <template #label>
              <div class="cell-item">用户名</div>
            </template>
            <el-input disabled ref="User_Name" v-model="dataForm.User_Name" class="borderless-input" placeholder="请输入用户名" />
          </el-descriptions-item>
          <el-descriptions-item>
            <template #label>
              <div class="cell-item">地址</div>
            </template>
            <el-input disabled ref="grid_member" :value="dataForm.Province + dataForm.City + dataForm.County+ dataForm.Town+ dataForm.Village+ dataForm.Address" class="borderless-input"
              placeholder="地址" />
          </el-descriptions-item>
          <el-descriptions-item>
            <template #label>
              <div class="cell-item">状态</div>
            </template>
            <el-input disabled ref="grid_member" :value="dataForm.Row_Status=='0'?'通过':dataForm.Row_Status=='2'?'审核中':dataForm.Row_Status=='3'?'拒绝':''" class="borderless-input" placeholder="状态" />
          </el-descriptions-item>
          <el-descriptions-item>
            <template #label>
              <div class="cell-item">价格</div>
            </template>
            <el-input disabled ref="grid_member" v-model="dataForm.Unit_Price" class="borderless-input"
              placeholder="请输入价格" />
          </el-descriptions-item>
          <el-descriptions-item>
            <template #label>
              <div class="cell-item">联系电话</div>
            </template>
            <el-input disabled ref="grid_member" v-model="dataForm.Contact_Phone" class="borderless-input"
              placeholder="请输入村行政区" />
          </el-descriptions-item>
          <el-descriptions-item>
            <template #label>
              <div class="cell-item">图片</div>
            </template>
            <el-image style="width: 130px;height: 130px;" :src="photo + dataForm.Picture_URL" fit="contain"></el-image>
          </el-descriptions-item>
          <el-descriptions-item>
            <template #label>
              <div class="cell-item">备注</div>
            </template>
            <el-input disabled ref="grid_member" type="textarea" :autosize="{ minRows: 5}" v-model="dataForm.Notes" class="borderless-input" placeholder="请输入备注" />
          </el-descriptions-item>
        </el-descriptions>
        <div class="table_titel">
          <div class="titel">轮播图 <span v-if="data1.length == 0">(暂无轮播图)</span></div>
        </div>
        <div style="display: flex; ">
          <el-image style="box-shadow: 0 1px 6px 0px rgba(0, 0, 0, 0.175); width: 130px;height: 130px;margin-right: 10px; padding: 5px; border-radius: 5px;" v-for="(item,index) in data1" :key="index" :src="photo + item.Image_URL" fit="contain"></el-image>
        </div>
        <div class="table_titel">
          <div class="titel">详情图 <span  v-if="data2.length == 0">(暂无详情图)</span></div>
        </div>
        <div style="display: flex; ">
          <el-image style="box-shadow: 0rem 1px 6px 0rem rgba(0, 0, 0, 0.175); width: 130px;height: 130px;margin-right: 10px;border-radius: 5px;" v-for="(item,index) in data2" :key="index" :src="photo + item.Image_URL" fit="contain"></el-image>
        </div>
      </div>
      
    </div>
    <footer class="botton-ann">
      <el-button @click="goBack">返回</el-button>
      <!-- <el-button type="primary" plain @click="handleSubmit" :loading="loading">提交</el-button> -->
    </footer>
  </div>
</body>
<script src="../../../utils/utils.js"></script>
<script src="../../../utils/compressor.js"></script>
<script src="../../../config/config.js"></script>
<script src="../../../utils/wangeditor.js"></script>
<script src="../../../utils/mixins.js"></script>
<script src="../../../yl/vue.js"></script>
<script src="../../../yl/index.js"></script>
<script src="../../../yl/zh-cn.mjs"></script>
<script src="../../../yl/index.iife.min.js"></script>
<script src="../../../yl/jquery.min.js"></script>
<script src="../../../utils/jquery.cookie.js"></script>
<script src="../../../yl/jquery.easyui.min.js"></script>
<script src="../../../yl/jquery.easyui.mobile.js"></script>
<script src="../../../yl/moment.min.js"></script>
<script src="../../../api/request.js"></script>
<script src="./js/add.js"></script>

</html>